if __name__ == "__main__":
    n = int(input())
    sum = 0
    sign = 1
    for i in range(1, n + 1):
        a = sign / (i * (i + 1))
        sum += a
        sign *= -1
    print("%.2f" % sum)
